<template>
  <div>
    <h1>App组件</h1>
    <hr />
    <Test></Test>
    <hr />
    {{ $bus.xxx }}
  </div>
</template>

<script>
import Test from './Test.vue'
export default {
  components: {
    Test,
  },
  mounted() {
    this.$bus.$on('fn', (data) => {
      console.log(data)
    })
  },
  beforeDestroy() {
    this.$bus.$off('fn')
  },
}
</script>

<style></style>
